from django.conf.urls.defaults import patterns, include, url
from django.contrib import admin
admin.autodiscover()
import settings

urlpatterns = patterns('',
    # Examples:
    # url(r'^$', 'VendeAgora.views.home', name='home'),
    # url(r'^VendeAgora/', include('VendeAgora.foo.urls')),

    (r'^media/(.*)$', 'django.views.static.serve',
         {'document_root': settings.MEDIA_ROOT}),
    url(r'^admin_tools/', include('admin_tools.urls')),
    url(r'^admin/', include(admin.site.urls)),
    (r'^$', 'vendotudo.views.homepage'),
    (r'^cadastro/$', 'vendotudo.views.cadastrousuario'),
    (r'^(?P<slugcategoria>[\w_-]+)/$', 'vendotudo.views.categoria'),
    (r'^(?P<slugcategoria>[\w_-]+)/(?P<slugproduto>[\w_-]+)/$', 'vendotudo.views.produto'),
)
